package com.crm.jdy.common.pojo;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:(客户商机信息实体类)
 * 
 * @version: V1.0
 * @author: kong
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ClientSourceInfo extends Model<ClientSourceInfo> {

	private static final long serialVersionUID = 1616727149828L;

	@TableId(value = "src_id", type = IdType.ID_WORKER_STR)
	@ApiModelProperty(name = "srcId" , value = "商机主键id")
	private String srcId;

	@NotBlank(message = "客户名称非空")
	@ApiModelProperty(name = "srcName" , value = "客户名称")
	private String srcName;

	@Email(message = "该值为邮箱")
	@ApiModelProperty(name = "srcEmail" , value = "客户邮箱")
	private String srcEmail;

	@ApiModelProperty(name = "srcFrom" , value = "客户来源")
	private String srcFrom;
    
	@ApiModelProperty(name = "srcPhone" , value = "客户电话")
	private String srcPhone;
    
	@ApiModelProperty(name = "srcAddress" , value = "客户地址")
	private String srcAddress;
    
	@ApiModelProperty(name = "srcJob" , value = "行业")
	private String srcJob;
    
	@ApiModelProperty(name = "srcLevel" , value = "客户级别")
	private String srcLevel;

	@ApiModelProperty(name = "srcNextTime" , value = "下次联系时间")
	private String srcNextTime;


	@ApiModelProperty(name = "srcLastTime" , value = "最后跟进时间")
	private String srcLastTime;
    
	@ApiModelProperty(name = "srcChargePerson" , value = "负责人")
	private String srcChargePerson;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "createTime" , value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "updateTime" , value = "更新最新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	@JsonIgnore
	@TableLogic
	@ApiModelProperty(name = "isDelete" , value = "0正常  1删除")
	private Integer isDelete;
    
	@ApiModelProperty(name = "srcCreatePerson" , value = "创建人")
	private String srcCreatePerson;

    

}
